/** When your routing table is too long, you can split it into small modules**/
import pageComponentName from '@/config/page-component-name'
import Layout from '@/layout/index.vue'

const withdrawalRouter = [
  {
    path: '/withdrawal',
    component: Layout,
    name: 'withdrawal',
    meta: {
      title: '财务中心',
      icon: 'DocumentChecked',
    },
    // hidden: true,
    children: [
      {
        path: 'list',
        component: () => import('@/views/withdrawal/index.vue'),
        name: 'withdrawalList',
        meta: {
          title: '提现列表',
          icon: 'DocumentChecked',
          componentName: pageComponentName.financialSettlement.settlementList,
        },
      },
      {
        path: 'set',
        component: () => import('@/views/withdrawal/set/index.vue'),
        name: 'withdrawalSet',
        meta: {
          title: '提现设置',
          icon: 'SetUp',
          componentName: pageComponentName.financialSettlement.settlementSet,
        },
      },
    ],
  },
]

export default withdrawalRouter
